import java.util.Scanner;

public class IThinkINeedAHouseboat {

	public static void main(String[] args) {
		double x, y;
		Scanner scan = new Scanner(System.in);
		x = scan.nextDouble();
		y = scan.nextDouble();
		
		System.out.println(radius(x,y));
	}
	
	public static double radius(double x, double y) {
		double rad = Math.sqrt(Math.pow(x,2) + Math.pow(y,2));
		return rad;
	}

}
